<template>
  <h2 class="text-xl font-bold mb-4">成绩管理</h2>
  <el-table :data="grades" style="width: 100%">
    <el-table-column prop="course" label="课程名称" />
    <el-table-column prop="assignment" label="作业名称" />
    <el-table-column prop="student" label="学生姓名" />
    <el-table-column prop="score" label="分数" />
    <el-table-column prop="feedback" label="评语" show-overflow-tooltip />
    <el-table-column label="操作">
      <template #default="scope">
        <el-button type="primary" link @click="editGrade(scope.row)"
          >编辑</el-button
        >
      </template>
    </el-table-column>
  </el-table>
</template>
<script lang="ts" setup></script>
<style scoped lang="scss"></style>
